FROM nginx:latest
WORKDIR /sxf-frontend-app
COPY . .
COPY /build /usr/share/nginx/html
COPY /deploy/nginx.conf.template /etc/nginx/nginx.conf.template
COPY /deploy/start-nginx.sh /usr/local/bin/start-nginx.sh
RUN chmod +x /usr/local/bin/start-nginx.sh
ENV PROXY_PASS ""
EXPOSE 8080
CMD ["/usr/local/bin/start-nginx.sh"]


